﻿using XjjXmm.FrameWork.ToolKit;

namespace XjjXmm.Infrastructure.Common
{

    /// <summary>
    /// 通用返回信息类
    /// </summary>
    public class ResponseModel<T>
    {

        public ResponseModel(T response )
        {
            Data = response;
        }

        /// <summary>
        /// 状态码
        /// </summary>
        public long Code { get; set; } = StatusCodes.Status200Ok.ToInt();
        /// <summary>
        /// 操作是否成功
        /// </summary>
        public bool Success { get; set; } = true;
        /// <summary>
        /// 返回信息
        /// </summary>
        public string Message { get; set; } = "";
        /// <summary>
        /// 返回数据集合
        /// </summary>
        public T Data { get; set; }

    }
}
